<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>CSS3 实现六边形图片展示效果</title>
    <style type="text/css">
        body, div, img, ul, li
        {
            margin: 0;
            padding: 0;
        }
        body
        {
            margin: 200px;
            font-size: 12px;
            /*background-color: #DDD;*/
            min-width: 1200px;
        }
        ul, ul li
        {
            list-style: none;
        }

        .boxF, .boxS, .boxT, .overlay
        {
            width: 160px;
            height: 210px;
            overflow: hidden;
        }
        .boxF, .boxS
        {
            /*visibility: hidden;*/
        }
        .boxF
        {
            transform: rotate(120deg);
            -ms-transform: rotate(120deg);
            -moz-transform: rotate(120deg);
            -webkit-transform: rotate(120deg);
            background: #0ff;
            border: 20px solid #000;
        }
      .boxS
        {
            transform: rotate(-60deg);
            -ms-transform: rotate(-60deg);
            -moz-transform: rotate(-60deg);
            -webkit-transform: rotate(-60deg);
          float: left;
          margin-left: -20px;
          margin-top: -20px;
            background: #f00;
          border: 20px solid #000;
        }
        .boxT
        {
            transform: rotate(-60deg);
            -ms-transform: rotate(-60deg);
            -moz-transform: rotate(-60deg);
            -webkit-transform: rotate(-60deg);
            margin-left: -20px;
            margin-top: -20px;
            visibility: visible;
            background: #ff0;
            border: 20px solid #000;

        }

        .A{
            margin: 20px;
            background:#00ffff;
            width: 300px;
            height: 300px;

        }
        .A .a .b{
            width: 100px;
            background: yellow;
        }
        .A .b{
            width: 100px;
            background: red;
        }
    </style>
</head>
<body>
<div class="boxF">
    <div class="boxS">
        <div class="boxT"></div>
    </div>
</div>
<div class="A">
    <div class="a">
        <div class="b">234</div>
    </div>
</div>

</body>
</html>